package com.example.demo.Service;

import com.example.demo.Mappers.TransactionaltestMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by Administrator on 2018/4/3.
 */
@Service("testservice")
public class TestService {
    @Autowired
    private TransactionaltestMapper transactionaltestMapper;
@Transactional(readOnly = true)
    public void InsetTrance(String a1,  String a2,  String b1, String b2){
    transactionaltestMapper.Savetrat1("16","16");
    transactionaltestMapper.Savetrat2("9","9");
    }}